
const getters = {
    token: state => state.user.token,
    avatar: state => state.user.avatar,
    name: state => state.user.name,
    mobile: state => state.user.mobile,
    staffId: state => state.user.staffId,
    staffInfo: state => state.user.staff,
    companyId: state => state.user.companyInfo.id,
    companyName: state => state.user.companyInfo.name,
    companyInfo: state => state.user.companyInfo,
    isCompany: state => state.user.isCompany,  //true企业 false个人
    roles: state => state.user.roles,
    permissions: state => state.user.permissions,
}

export default getters
